<style>
    .layui-form-label{
        width: auto;
    }
</style>
<div class="layui-card">
    <div class="layui-card-header">基本资料</div>
    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red;">*</span>商户名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" placeholder="请输入商户名称" value="{{$model->name}}" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red;">*</span>商户头像</label>
            <div class="layui-input-block">
                @php echo wg_tpl_form_field_image('avatar',$model->avatar); @endphp
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red;">*</span>主营项目</label>
            <div class="layui-input-block">
                <input type="text" name="salecate" placeholder="请输入主营项目" value="{{$model->salecate}}"
                       class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red;">*</span>联系人</label>
            <div class="layui-input-block">
                <input type="text" name="realname" placeholder="请输入联系人" value="{{$model->realname}}"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red;">*</span>联系电话</label>
            <div class="layui-input-block">
                <input type="text" name="phone" placeholder="请输入联系电话" value="{{$model->phone}}" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red;">*</span>身份证号码</label>
            <div class="layui-input-block">
                <input type="text" name="idcard" placeholder="请输入身份证号码" value="{{$model->idcard}}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">商户地址</label>
            <div class="layui-input-block">
                <input type="text" name="address" placeholder="请输入商户地址" value="{{$model->address}}" class="layui-input">
            </div>
        </div>
    </div>
</div>
@section('script')
    <script>
        layui.use('form', function () {
        });
    </script>
@endsection